#================================================================
#	This Makefile creates _Kernel.so which can be imported by Python
#================================================================

include ../makefile.inc

Kernel_module = Alpha_shapes_2

OBJ_of_Kernel_module = 	 \
	Py_Alpha_shape_2.o \
	Alpha_shapes_2_module.o 

all: $(OBJ_of_Kernel_module) $(OBJ_of_Triangulation_2_module) 
	@echo 'Creating a Python modules'
	@g++ $(CGAL_PYTHON_LDFLAGS) $(OBJ_of_Kernel_module) -o $(Kernel_module).so
	@echo '$(Kernel_module) module is created in ./$(Kernel_module)/$(Kernel_module).so'

.cpp.o:
	@echo 'Compiling $<'
	@g++ $(CGAL_PYTHON_CXXFLAGS) -c $<

clean:
	@rm -f *.so
	@rm -f $(OBJ_of_Kernel_module) *.*~  *~ 
